package org.jsystemtest.course.tests;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.HashMap;

import javax.xml.stream.XMLReporter;

import org.jsystemtest.course.so.CliObj;
import org.junit.Before;
import org.junit.Test;

import com.reporter.object.PerfPublisher1;

import jsystem.framework.TestProperties;
import jsystem.framework.report.ListenerstManager;
import jsystem.framework.scenario.Parameter;
import junit.framework.SystemTestCase4;

public class CliObjTests extends SystemTestCase4 {

	private CliObj cliObj;

	private String fileName;
	PerfPublisher1 reporter;
	
	@Override
	public void handleUIEvent(HashMap<String, Parameter> map, String methodName)
			throws Exception {
		// TODO Auto-generated method stub
		super.handleUIEvent(map, methodName);
	}

	@Before
	public void getResources() throws Exception {
		cliObj = (CliObj) system.getSystemObject("cliObj");
	}

	@Test
	@TestProperties(name = "Asserts file ${fileName} exists", paramsInclude = { "fileName" })
	public void assertFileExistence() throws Exception {
		report.report("this is Fail", false);
	}

	@Test
	@TestProperties(name = "Asserts file ${fileName} exists", paramsInclude = { "fileName" })
	public void assertFileExistence1() throws Exception {
		report.report("this is not Fail", true);
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}
